<?php
	$this->layout = 'main_layout';     
?>

<body>
<div class="main_background">
	
	<div id='login'>
		<?php
			echo $this->Form->create(null, array('url' => array('controller'=>'main', 'action'=>'login')));
			echo $this->Form->input('user', array('label' => 'Username'));
			echo $this->Form->input('pass', array('type' => 'password', 'label' => 'Password'));
			echo $this->Form->end('Login');
            echo $this->Session->flash('auth');
		?>
		<div id="login_links">
			<?php
			echo $this->Html->link('Have you lost you password?', array('action'=>'forgot_password'));
			echo '<br/>';
			echo $this->Html->link('Register', array('action'=>'register'));
			?>
		</div>
	</div>
	
	<div class="main_content">

		<div class="menu">
			<ul>
				<li><?php echo $this->Html->link('Main page', array('action'=>'index'), array('class'=>'menu_link')); ?></li>
				<li><?php echo $this->Html->link('Register', array('action'=>'register'), array('class'=>'menu_link')); ?></li>
				<li><?php echo $this->Html->link('Rules', array('action'=>'rules'), array('class'=>'menu_link')); ?></li>
				<li><?php echo $this->Html->link('About us', array('action'=>'about'), array('class'=>'menu_link')); ?></li>
			</ul>
		</div>
		<div class="clear"></div>
		<?php echo $this->fetch('content'); ?>
	</div>
		
</div>

</body>
